atwood machine with rotational energy